using System;
using System.Collections.Generic;
using System.Text;

using System.Data;
using Husb.Data;
using Husb.Util;
using CentralOffice.Enterprise.Data;
using CentralOffice.Enterprise.DataAccess;
using EnterpriseCategoryTable = CentralOffice.Enterprise.Data.EnterpriseCategoryDataSet.EnterpriseCategoryDataTable;
using EnterpriseCategoryRow = CentralOffice.Enterprise.Data.EnterpriseCategoryDataSet.EnterpriseCategoryRow;


namespace CentralOffice.Enterprise.BusinessActions
{
    public class EnterpriseCategory : DataAccessManager<EnterpriseCategoryDataSet, EnterpriseCategoryTable, EnterpriseCategoryRow, EnterpriseCategoryAdapter>
    {
        public static EnterpriseCategoryTable GetCategoryTree()
        {
            EnterpriseCategoryAdapter adapter = new EnterpriseCategoryAdapter();
            return adapter.GetCategoryTree();
        }

        public static EnterpriseCategoryTable GetChildren(Guid id)
        {
            EnterpriseCategoryAdapter adapter = new EnterpriseCategoryAdapter();
            return adapter.GetChildren(id);
        }


        public static int GetEnterpriseCountByCategoryId(Guid id)
        {
            EnterpriseCategoryAdapter adapter = new EnterpriseCategoryAdapter();
            return adapter.GetEnterpriseCountByCategoryId(id);
        }
    }
}
